package website;

import java.text.ParseException;
import java.util.Date;

import org.junit.Test;

import com.work.yly.website.service.DateUtils;

public class Mytest {

	@Test
	public void test(){
		Date date;
		try {
			date = DateUtils.parseDate("2015-09-30 19:22:16", "yyyy-MM-dd HH:mm:ss");
			Long l = DateUtils.pastDays(date);
			System.out.println(l);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	
	}
}
